package com.study.talk.module.netty.message.response;

import com.study.talk.module.entity.UserInfo;
import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 *  发出邀请加入群聊后 发出请求客户端的消息回响
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InviteGroupSelfResponse extends TalkMessage {


    @ApiModelProperty("成功发出邀请用户")
    private List<UserInfo> successUser;

    @ApiModelProperty("发出邀请失败用户")
    private List<UserInfo> failedUser;

    @ApiModelProperty("群聊名称")
    private String groupName;

    @ApiModelProperty("群聊id")
    private Integer groupId;

    @Override
    public byte getType() {
        return MessageType.INVITE_GROUP_SELF_RESPONSE;
    }
}
